# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-django-mptt
_pkgname=django-mptt
pkgver=0.14
pkgrel=2
pkgdesc="Utilities for implementing a modified pre-order traversal tree in django"
options="!check" # Requires running django instance
url="https://github.com/django-mptt/django-mptt"
arch="noarch"
license="MIT"
depends="py3-django py3-django-js-asset"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/django-mptt/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-django-mptt" # Backwards compatibiity
provides="py-django-mptt=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py --quiet build
}

package() {
	python3 setup.py --quiet install --skip-build --root="$pkgdir"
}

sha512sums="
b52bf34f6a34f2811155917d9fe66bfa5aa645e8be9bc8f9930a0dc5a6fdfb99b14b0a9adac378a895393683732997f0db491bc2857b22207fe3a0a386232ce7  py3-django-mptt-0.14.tar.gz
"
